package ArrayList;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<String>();
        list.add("aaa", 0);
        list.add("bbb", 1);

        list.remove(1);

        String s = list.get(0);

        System.out.println(list.isEmpty());
        System.out.println(s);

    }
}
